package org.jeecg.modules.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * @Description: 支付订单
 * @Author: jeecg-boot
 * @Date: 2024-08-07
 * @Version: V1.0
 */
@Data
@TableName("cu_payment_orders")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "支付订单")
public class CuPaymentOrders implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private java.lang.String id;
    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private java.lang.String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建日期")
    private java.util.Date createTime;
    /**
     * 更新人
     */
    @Schema(description = "更新人")
    private java.lang.String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private java.util.Date updateTime;
    /**
     * 所属部门
     */
    @Schema(description = "所属部门")
    private java.lang.String sysOrgCode;
    /**
     * 用户
     */
    @Excel(name = "用户", width = 15, dictTable = "cu_user_details", dicText = "user_name", dicCode = "id")
    @Dict(dictTable = "cu_user_details", dicText = "user_name", dicCode = "id")
    @Schema(description = "用户")
    private java.lang.String userId;
    /**
     * 订单号
     */
    @Excel(name = "订单号", width = 15)
    @Schema(description = "订单号")
    private java.lang.String orderId;
    /**
     * 支付状态
     */
    @Excel(name = "支付状态", width = 15, dicCode = "payment_status")
    @Dict(dicCode = "payment_status")
    @Schema(description = "支付状态")
    private java.lang.String paymentStatus;
    /**
     * 支付金额
     */
    @Excel(name = "支付金额", width = 15)
    @Schema(description = "支付金额")
    private java.math.BigDecimal paymentAmount;
    /**
     * 退款时间
     */
    @Excel(name = "退款时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "退款时间")
    private java.util.Date refundTime;
    /**
     * 支付方式
     */
    @Excel(name = "支付方式", width = 15, dicCode = "payment_method")
    @Dict(dicCode = "payment_method")
    @Schema(description = "支付方式")
    private java.lang.String paymentMethod;
    /**
     * 三方订单号
     */
    @Excel(name = "三方订单号", width = 15)
    @Schema(description = "三方订单号")
    private java.lang.String paymentReference;
    /**
     * 备注信息
     */
    @Excel(name = "备注信息", width = 15)
    @Schema(description = "备注信息")
    private java.lang.String note;
    /**
     * 支付时间
     */
    @Excel(name = "支付时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "支付时间")
    private java.util.Date paymentTime;
    /**
     * 实付金额
     */
    @Excel(name = "实付金额", width = 15)
    @Schema(description = "实付金额")
    private java.math.BigDecimal paidAmount;
    /**
     * 商品ID
     */
    @Excel(name = "商品ID", width = 15)
    @Schema(description = "商品ID")
    private java.lang.String productId;
}

